<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet">
</head>
<body>
[[${users}]]sadasdas234234

<table class="layui-table">
    <thead>
    <th>年龄</th>
    <th>姓名</th>
    </thead>
    <tbody>
    <a href="/user/add" class="layui-btn layui-btn-primary layui-border-blue">新增</a>
    <tr th:each="user:${users}">
    <td>[[${user.age}]]</td>
    <td th:text="${user.name}"></td>
    <td><a th:href="'/user/edit/'+${user.age}" class="layui-btn layui-btn-primary layui-border-blue">修改</a>
        <a th:href="'/user/delete/'+${user.age}" class="layui-btn layui-btn-primary layui-border-blue">删除</a>
    </td>
    </tr>
    </tbody>
</table>
</body>
</html>